package cn.zn.modules.expense.vo;

import lombok.Data;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

@Data
public class ApplyTripVo {
    private LocalDate startTime;
    private LocalDate endTime;
    private String startPlace;
    private String endPlace;
    private String traffic;
    private String expenseUnit;

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(this.startTime.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")))
                .append(" 至 ").append(this.endTime.format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")))
                .append(" ").append(this.startPlace).append("-").append(this.endPlace).append(" 乘").append(this.traffic);
        return stringBuilder.toString();
    }
}
